package common;

import java.io.Serializable;

/**
 * This class represents subject of exam
 *
 */
public class Subject implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2552210545688693133L;

	private int id;
	private String name;
	
	/**
	 * Department ID getter
	 * @return
	 */
	public int getId() {
		return id;
	}
	
	/**
	 * Department ID setter
	 * @param id
	 */
	public void setId(int id) {
		this.id = id;
	}
	
	/**
	 * Department name getter
	 * @return
	 */
	public String getName() {
		return name;
	}
	
	/**
	 * Department name setter
	 * @param name
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	/**
	 * String representation of the object
	 */
	public String toString(){
		return getName();
	}
}
